package com.app.partner.mapper;

import com.app.partner.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@Mapper
public interface UserMapper {
    @Select("select * from part_user")
    User findAll() throws Exception;


    @Insert("insert into part_enter(username,password,entername,number) value(#{username},#{password},#{usname},#{number})")
    void save(User user);
}
